package com.whcoding.test.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-boot-learning
 * @description:重复提交
 * @author: whcoding
 * @create: 2022-05-25 15:04
 **/
@RestController
@RequestMapping("/repeat")
public class RepeatSubmitController {
	/**
	 * 被重复请求的方法
	 *
	 */
	@RequestMapping("/add")
	public String addUser(String id) {
		// 业务代码...
		System.out.println("添加用户ID:" + id);
		return "执行成功！";
	}
}
